<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: snow_header"></head>
<body class="gray-bg">
    <div class="container-div">
		<div class="btn-group hidden-xs" id="toolbar" role="group">
			<a class="btn btn-outline btn-success btn-rounded" onclick="$.operate.add()" shiro:hasPermission="module:groupProperty:add">
				<i class="fa fa-plus"></i> 新增
			</a>
			<!--<a class="btn btn-outline btn-danger btn-rounded" onclick="$.operate.removeAll()" shiro:hasPermission="module:groupProperty:remove">-->
				<!--<i class="fa fa-trash-o"></i> 删除-->
			<!--</a>-->
		</div>
			
		<div class="col-sm-12 select-table table-striped">
			<table id="bootstrap-table" data-mobile-responsive="true" style="white-space:nowrap"></table>
		</div>
    </div>
    <div th:include="include :: snow_footer"></div>
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('module:groupProperty:edit')}]];
        var removeFlag = [[${@permission.hasPermi('module:groupProperty:remove')}]];
        var prefix = ctx + "module/groupProperty"

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                modalName: "配置组属性",
                columns: [{
		            checkbox: true
		        },
				{
					field : 'configGroupPropertyId', 
					title : '配置属性ID' 
				},
				{
					field : 'configGroupId', 
					title : '配置组ID' 
				},
				{
					field : 'propKey', 
					title : '属性名' 
				},
				{
					field : 'propValue', 
					title : '属性值' 
				},
				{
					field : 'propConstraint', 
					title : '属性约束' 
				},
				{
					field : 'description', 
					title : '描述' 
				},
                {
                    field : 'orderNum',
                    title : '排序'
                },
				{
					field : 'createBy', 
					title : '创建者' 
				},
				{
					field : 'createTime', 
					title : '创建时间' 
				},
				{
					field : 'updateBy', 
					title : '更新者' 
				},
				{
					field : 'updateTime', 
					title : '更新时间' 
				},
				{
					field : 'remark', 
					title : '备注' 
				//  },
		        // {
		        //     title: '操作',
		        //     align: 'center',
		        //     formatter: function(value, row, index) {
		        //     	var actions = [];
		        //     	actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="$.operate.edit(\'' + row.configGroupPropertyId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                //         actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="$.operate.remove(\'' + row.configGroupPropertyId + '\')"><i class="fa fa-remove"></i>删除</a>');
				// 		return actions.join('');
		        //     }
		        }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>